package com.woniuxy.meal.form;
import com.baomidou.mybatisplus.annotation.TableField;
import com.woniuxy.meal.service.dto.StoreCartDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("生成订单参数对象")
public class AddOrderForm {

    @NotNull
    @Min(0)
    @ApiModelProperty("商铺id")
    private Long storeId;
    @ApiModelProperty("商铺名称")
    private String storeName;
    @NotNull
    @ApiModelProperty("配送方式 1：堂食 2：外送")
    private Integer dispatching;
    @Min(0)
    @ApiModelProperty("配送费")
    private BigDecimal dphPrice;
    @Min(0)
    @ApiModelProperty("包装费")
    private BigDecimal packPrice;
    @Min(0)
    @ApiModelProperty("订单总价格")
    private BigDecimal price;
    @NotNull
    @ApiModelProperty("收餐人电话")
    private String orderPhone;
    @ApiModelProperty("收餐人姓名")
    private String receiveName;
    @ApiModelProperty("送餐地址")
    private String address;
    @ApiModelProperty("支付方式（1 支付宝 2 微信 ）")
    private Integer payType;
    @ApiModelProperty("订单备注")
    private String remarks;
    @NotNull
    @ApiModelProperty("订单中所有菜品的id")
    private List<Long> foodIds;

}
